﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="HL.Lib.MVC.ViewControl" %>
<%
    var listItem = ViewBag.Data as List<ModNewsEntity>;
    var Title = ViewBag.Title as string;
%>
<div id="pages">
    <div class="pageContainer currentFrame homePage wrapper_home index">
        <div class="pagenumber homePage" id="0">
            <div class="screen-reader-text">
                <style type="text/css">
                    .screen-reader-text
                    {
                        position: absolute;
                        top: 400px;
                        left: 50px;
                        margin-right: 30px;
                        z-index: 2;
                        color: #fff;
                    }
                </style>
            </div>
            <div class="pageTitle">
                <%=Title %></div>
            <div class="container_home">
                <div id="home_controls">
                    <div id="home_label">
                        <%for (int i = 0; listItem != null && i < listItem.Count; i++)
                          {
                              if (!string.IsNullOrEmpty(listItem[i].File))
                              { 
                        %>
                        <span><a href="<%=ViewPage.GetURL(listItem[i].MenuID,listItem[i].Code) %>" title="<%=listItem[i].Name %>">
                            <%=Data.CutString(listItem[i].Name,30) %></a></span>
                        <%}
                          } %>
                    </div>
                    <a href="" id="home_left">left</a> <a href="" id="home_right">right</a> <a href=""
                        id="home_playpause" class="playing">play/pause</a>
                </div>
                <div class="slider_home">
                    <%for (int i = 0; listItem != null && i < listItem.Count; i++)
                      {
                          if (!string.IsNullOrEmpty(listItem[i].File))
                          { 
                    %>
                    <img src="<%=listItem[i].File.Replace("~/","/") %>" width="1280" alt="<%=listItem[i].Name %>">
                    <%}
                      } %>
                </div>
                <div class="ribbon_home">
                    <%
                        int dem = 0;
                        for (int i = 0; listItem != null && i < listItem.Count; i++)
                        {
                            if (!string.IsNullOrEmpty(listItem[i].File))
                            { 
                    %>
                    <div class="text_slide<%if(dem==0){ %> current<%} %>">
                        <%=listItem[i].Intro %>
                    </div>
                    <%} dem++;
                      } %>
                </div>
                <div class="twitter-wrap">
                    <div class="tweet">
                        <div class="tw-status">
                            {RS:Web_Status}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class='home-bk'>
        <div class='home-gradient'>
        </div>
    </div>
</div>
